/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-questionnaire
*
* @File name : QuestionnaireServiceInterface.java
*
* @Author : Administrator
*
* @Date : 2017年6月2日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年6月2日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.questionnaire.service;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
* 调用Customer的接口
* @author Administrator
* TODO description
* @date 2017年6月2日
*/
@FeignClient(name="SERVICE-CUSTOMER" )
public interface QuestionnaireServiceInterface {
    
    @RequestMapping(value = "/messages", method = RequestMethod.POST,consumes = "application/json;UTF-8")
    Map<String ,Object> sendMessage(@RequestParam("openId") String openId,@RequestParam("content") String content);

    @RequestMapping(value = "/mass/message", method = RequestMethod.POST,consumes = "application/json;UTF-8")
    Map<String ,Object> mass(@RequestParam("openId_List") String openId_List,@RequestParam("content") String content);
}
